#!/usr/bin/python3
# -*- coding: utf-8 -*-
import datetime
import hashlib
import json
import os
import time
from urllib.parse import urlencode, quote

import requests
import simplejson

from utils import LogSys


def timesHMS():
    '''

    :return: %Y%m%d%H%M%S
    '''
    return time.strftime("%Y%m%d%H%M%S", time.localtime())


def timesFomatUseLogPrint():
    '''

    :return: %Y-%m-%d %H:%M:%S
    '''
    return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())


def timesUNInx():
    '''

    :return: %Y-%m-%d %H:%M:%S
    '''
    return time.strftime("%Y%m%d%H%M%S", time.localtime())


def timesYMD():
    '''

    :return: %Y%m%d
    '''
    return time.strftime("%Y%m%d", time.localtime())


def timesExpectYMD(skip_day):
    '''

    :param skip_day:
    :return: %Y%m
    '''
    return (datetime.datetime.now() + datetime.timedelta(days=skip_day)).strftime("%Y-%m-%d")


def sleep(secs):
    '''
    单位秒
    :param secs:
    :return:
    '''
    LogSys.logInfo('sleep {0} s'.format(secs))
    time.sleep(secs)


def unixTimesNow():
    '''
    返回日期的时间戳
    :return:
    '''
    timeArray = time.strptime(timesYMD(), "%Y%m%d")
    return int(time.mktime(timeArray))


def unixTimesExceptDay(skipDay):
    '''
    返回指定日期的时间戳
    :param skipDay:
    :return:
    '''
    timeArray = time.strptime(skipDay, "%Y-%m-%d")
    return int(time.mktime(timeArray))

def mons(mon):
    return mon * 0.0354/360*7 +mon

if __name__ == '__main__':
    s1 = '{"data":{"user-center":"https://onepass-auth-server-ycjf-test.ycfin.net/realm/baf236f2121c4ae1b0dff7382647cb3a/personal-center","userinfo":{"sub":"27c4190705cf4ad18f9b1e72310df9d2","realmId":"baf236f2121c4ae1b0dff7382647cb3a","roles":[{"permissionGroupId":"7b45bb8fb60a446c974d5af13fd5dad4","roleId":"f25b8ff171c644df8416109e0d882623","roleName":"6:admin","description":"平台管理员","id":"1c311f9a8afa4c8eb418a89c9e3c4f41","permissionGroupName":"华能云链通权限组"}],"name":"李明(平台方)","authorizations":[{"resourceId":"ef460afc1022479c93ca79445cf81699","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"platformInfo","id":"06db85779d5644048d8f51d792c4660e","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"3a1ea0b18a5843babda31a4b155867c9","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"IPFFinancingMaReviewList","id":"14082a9bcc1a4f1a825a1cbad73b0a2c","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"22769114ff3042378d40651522613dd5","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"assetsMa","id":"15cb82e7257e4c7fb3b9a6b89b0a6548","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"2a6923d4592e4963bfd988fd31574861","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"contractList","id":"23ef37e351cb411993351f035514f867","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"1dfc143cefb24cbf80634d96d193ac4c","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"assetsMaFundsShipmentList","id":"277f6ac193d448fb8c57669a9b503b44","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"4d6a5763b8d24d2c912679042cec8eae","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerMaCorporateInformationMaintenanceThirdPartyCompanyList","id":"2e2353a7dc4a40c598d34890dc092a5a","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"b64d866e6e714497b3173e82ae328e66","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"factorMaList","id":"2e6818d9fb75489fa7e692f2595ee8eb","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"7b9c1b8cfadb48f885101ff0bc524095","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"assetsMaPlatformList","id":"357a47f3a0d64ae282472106c46cad7c","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"ddd443135fbe40fdb91ebba3860e1600","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"InventoryPledgeFinancingStocksStatistics","id":"49f8e5eaadc04d6daa460e20d18490e5","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"05292c8bb15f47cc858ccfbb41dccf6e","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"productMa","id":"4be5541bb0d940a2b60bd5ed8db11e5f","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"8215a637737f4e9daf302575b256bb8d","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"generalManagement","id":"4d027b02d75e4ca59dd4fc8afc48c50e","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"e83f5672882445948759d0309a65b5f3","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"productMaOpenApprovalList","id":"50924c4baa6242ad8f773970614f31b9","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"c073aae150b04241a16043139d3667ef","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"companyAdmittance","id":"5fa7bd2895314c979928c7cb330ecf3b","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"545c2996082343628283c60d727a00d5","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"productMaProductList","id":"61a4367036864f47b8100eb486982e92","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"f83a0ab5acc2480da64ecc3f1314ace2","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerMaCorporateInformationMaintenanceFinancingClientsList","id":"69147a1e2e0c46e2a60f3353af6eccd7","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"de8b52df4466459a8e77d8b992b94456","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerMaCorporateInformationMaintenanceCoreBusinessList","id":"6d8ad7b59d8d44cab70354a6a606e233","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"b3dfeb1d4ba6457fb69c17e670b725bd","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"quotaMa","id":"6e4c4de01e2440749e0f6e854bd456c3","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"55b6d93ac2154669aeea846615382db2","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"quotaMaList","id":"6f34f9443185447196639600b5f8febf","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"f83976383dbe4163b2b9cb8e329f004f","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"workbench","id":"8890eaf6e53f486f92b80a2a03d4bc29","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"a25d2a9be6994439aab67e94c0341624","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"useCreditMaFinancingLoanApprovalList","id":"8a80e88e171940f9ab6638cbc1228c53","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"1b1eb85beb344e99aa5f32a32bc1853c","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"projectMaReviewList","id":"8bbeda4e5ce545f88830b84aac064ea0","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"b6ba34e73ec14aeb809a1d9f54767b0d","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"workbenchMessage","id":"956027b5c18c44b4ac83a712003c6613","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"76857a5e69d94562a509cc01ef6daebd","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"auditLog","id":"95851c3dc7084b82b110992ede6b4b39","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"8596b6713d164a4986a45b746dc3c0f2","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerMaIntentionalCustomer","id":"991bfef4acfa41ecad9103c0d6b10a6d","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"01a9aa1b1f15440bb8b2073bece08e02","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"inventoryPledgeFinancing","id":"9b3b03d00f424c8f99bc4c31384046f4","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"04df5dab259a40c5a0dc3d1a001210bc","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerMaCorporateInformationMaintenanceStoreHouseList","id":"9eba3a6747734bc585e02aa961cbd648","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"000984d71b4944c988e2cef5e23e6d2f","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"platformAccount","id":"a15ba8743c524cb8a7c9875b142289c3","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"2bd1861aa1574f74b482e1915bb9805a","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"platformFinancingList","id":"a66200bbd71b4359b6c1861f5bedd077","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"9965d2de0f9c457987487260822b4ae4","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"projectMa","id":"b17cdef3fadb41c19d98db23aae5040d","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"09156ff9cc324fce84548ab861eda793","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"auditLogCompany","id":"b8aeaf9b8f514d668ee12c0c67b9a7ed","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"a031ac7ec315451e966d995c4fa67fc1","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"platformInfoAccountsInfo","id":"b902dab9e694432ca0b06de5a0dee75e","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"3e6ca6b4d3c6414cab516a00c48db1c5","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"homeIndex","id":"c3c7b1209a884ce7b3b64cad4e762034","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"8d6d78459c0b4253bd9037554a591c42","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"contractMaList","id":"d53ab2fb25764773bafaac0c36950101","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"3b08a2ab892342dea9db27f15e523671","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"contractMa","id":"d6067414182946cca7dbda6beeb152ca","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"9368b3093c984e7892e733d4ad8f4068","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"contractMaTemplate","id":"d859382bf2804ad181aa333743fe098a","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"024abb710dc946868342569aee115920","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"InventoryPledgeFinancingCECIList","id":"d9876182c90a49b19175f2d9edeb7282","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"5cd0633b175c4ffc9cf52931c8e49d80","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"auditLogSeal","id":"df3ca55ca2bf4ab0b3157ba1e615cf57","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"7327c18781ba43aa8521608c4637f881","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"workbenchTask","id":"e03f63acce3a491f81dbe9d56fe6db03","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"af531c3fd4864299bd14c5a608e6bbb9","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerMa","id":"e8c3b2e6167f41e489d7bdb545add663","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"b9dbef9b40a743dbaf4ee989ebfee68a","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"poolFinancing","id":"eb8192cbe33e477e9391e6bcbd18e433","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"6d3c345571d44fc39c0ca3f64ffbb990","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"factorMa","id":"ecf5976eedca4f14899040e731d842c1","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"1969da9bc806429faa6433e577712a4a","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"productMaTemplateList","id":"fb2d1ee763da4813bae736efbf67b2c6","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"d5c865abf2f74178b969d120121c2808","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"platformPoolList","id":"fbee16c362054a739e782e1ce5ab851a","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"584b31da717a42bca6103ee97d679fe3","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"billMaList","id":"feb5ff65da884d21831085e7724dfbc5","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"b6e1bf00001743c5989b9527d454c036","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"accountMa","id":"fec249af2a6f48dc8485502742a4d461","effectType":1,"permissionGroupName":"华能云链通权限组"}],"phone_number_verified":false,"groups":[{"groupName":"北京云成金融信息服务有限公司","realmId":"baf236f2121c4ae1b0dff7382647cb3a","isPrimary":true,"groupId":"1341332871a948ec85ce76a815312e3e","userId":"27c4190705cf4ad18f9b1e72310df9d2","groupCode":"91120118MA06DFA24A"}],"phone_number":"15011043582","email":"liming@ycfin.com.cn","attrs":{}}}}'
    ss ='{"data":{"user-center":"https://onepass-auth-server-ycjf-test.ycfin.net/realm/baf236f2121c4ae1b0dff7382647cb3a/personal-center","userinfo":{"sub":"dabe151d155744c097a60aa99f90f3b0","realmId":"baf236f2121c4ae1b0dff7382647cb3a","roles":[{"permissionGroupId":"7b45bb8fb60a446c974d5af13fd5dad4","roleId":"c1a6ef06168e4e9d9ae2f4010ef31120","roleName":"5:admin","description":"仓库企业管理员","id":"9bc5c7c1f5a24445bd1e02efb3a106ae","permissionGroupName":"华能云链通权限组"}],"name":"王耀","authorizations":[{"resourceId":"2a6923d4592e4963bfd988fd31574861","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"contractList","id":"034aad20cc13495ab00d45b703f40fd3","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"3e6ca6b4d3c6414cab516a00c48db1c5","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"homeIndex","id":"34de03a5f05047abb285a74a3de47286","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"7327c18781ba43aa8521608c4637f881","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"workbenchTask","id":"7c0d8582e7b64a70b3f83c20e4a8a79c","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"f83976383dbe4163b2b9cb8e329f004f","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"workbench","id":"8b4cade98cf948d890ba3a6454ecbd0d","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"b6ba34e73ec14aeb809a1d9f54767b0d","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"workbenchMessage","id":"93ce07d39faa4b9abdbf49fe6477fcac","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"6787506a8fe345d49ea44547e193ffad","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerInfoCorporateInformationMaintenanceStoreHouseDetailEnterprise","id":"bb48914f74454984881ffe28be2c1877","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"cf51e4376e2b411abe236c02822ac645","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"InventoryPledgeFinancingStoreHouseList","id":"f54bfb6d8fe64ddba151165a44fbc60b","effectType":1,"permissionGroupName":"华能云链通权限组"}],"groups":[{"groupName":"东莞农村商业银行股份有限公司","realmId":"baf236f2121c4ae1b0dff7382647cb3a","isPrimary":true,"groupId":"1e6719c9da3c4afda9bb7ead98a9b483","userId":"dabe151d155744c097a60aa99f90f3b0","groupCode":"enterprise914419007829859746"}],"phone_number":"13850000009","attrs":{"hnylt_admin_1":"true"}}}}'
    sd = '{"data":{"user-center":"https://onepass-auth-server-ycjf-test.ycfin.net/realm/baf236f2121c4ae1b0dff7382647cb3a/personal-center","userinfo":{"sub":"27c4190705cf4ad18f9b1e72310df9d2","realmId":"baf236f2121c4ae1b0dff7382647cb3a","roles":[{"permissionGroupId":"7b45bb8fb60a446c974d5af13fd5dad4","roleId":"f25b8ff171c644df8416109e0d882623","roleName":"6:admin","description":"平台管理员","id":"1c311f9a8afa4c8eb418a89c9e3c4f41","permissionGroupName":"华能云链通权限组"}],"name":"李明(平台方)","authorizations":[{"resourceId":"ef460afc1022479c93ca79445cf81699","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"platformInfo","id":"06db85779d5644048d8f51d792c4660e","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"3a1ea0b18a5843babda31a4b155867c9","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"IPFFinancingMaReviewList","id":"14082a9bcc1a4f1a825a1cbad73b0a2c","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"22769114ff3042378d40651522613dd5","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"assetsMa","id":"15cb82e7257e4c7fb3b9a6b89b0a6548","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"2a6923d4592e4963bfd988fd31574861","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"contractList","id":"23ef37e351cb411993351f035514f867","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"1dfc143cefb24cbf80634d96d193ac4c","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"assetsMaFundsShipmentList","id":"277f6ac193d448fb8c57669a9b503b44","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"4d6a5763b8d24d2c912679042cec8eae","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerMaCorporateInformationMaintenanceThirdPartyCompanyList","id":"2e2353a7dc4a40c598d34890dc092a5a","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"b64d866e6e714497b3173e82ae328e66","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"factorMaList","id":"2e6818d9fb75489fa7e692f2595ee8eb","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"7b9c1b8cfadb48f885101ff0bc524095","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"assetsMaPlatformList","id":"357a47f3a0d64ae282472106c46cad7c","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"05292c8bb15f47cc858ccfbb41dccf6e","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"productMa","id":"4be5541bb0d940a2b60bd5ed8db11e5f","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"8215a637737f4e9daf302575b256bb8d","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"generalManagement","id":"4d027b02d75e4ca59dd4fc8afc48c50e","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"e83f5672882445948759d0309a65b5f3","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"productMaOpenApprovalList","id":"50924c4baa6242ad8f773970614f31b9","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"c073aae150b04241a16043139d3667ef","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"companyAdmittance","id":"5fa7bd2895314c979928c7cb330ecf3b","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"545c2996082343628283c60d727a00d5","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"productMaProductList","id":"61a4367036864f47b8100eb486982e92","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"f83a0ab5acc2480da64ecc3f1314ace2","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerMaCorporateInformationMaintenanceFinancingClientsList","id":"69147a1e2e0c46e2a60f3353af6eccd7","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"de8b52df4466459a8e77d8b992b94456","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerMaCorporateInformationMaintenanceCoreBusinessList","id":"6d8ad7b59d8d44cab70354a6a606e233","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"b3dfeb1d4ba6457fb69c17e670b725bd","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"quotaMa","id":"6e4c4de01e2440749e0f6e854bd456c3","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"55b6d93ac2154669aeea846615382db2","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"quotaMaList","id":"6f34f9443185447196639600b5f8febf","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"f83976383dbe4163b2b9cb8e329f004f","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"workbench","id":"8890eaf6e53f486f92b80a2a03d4bc29","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"a25d2a9be6994439aab67e94c0341624","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"useCreditMaFinancingLoanApprovalList","id":"8a80e88e171940f9ab6638cbc1228c53","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"1b1eb85beb344e99aa5f32a32bc1853c","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"projectMaReviewList","id":"8bbeda4e5ce545f88830b84aac064ea0","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"b6ba34e73ec14aeb809a1d9f54767b0d","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"workbenchMessage","id":"956027b5c18c44b4ac83a712003c6613","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"76857a5e69d94562a509cc01ef6daebd","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"auditLog","id":"95851c3dc7084b82b110992ede6b4b39","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"8596b6713d164a4986a45b746dc3c0f2","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerMaIntentionalCustomer","id":"991bfef4acfa41ecad9103c0d6b10a6d","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"04df5dab259a40c5a0dc3d1a001210bc","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerMaCorporateInformationMaintenanceStoreHouseList","id":"9eba3a6747734bc585e02aa961cbd648","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"000984d71b4944c988e2cef5e23e6d2f","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"platformAccount","id":"a15ba8743c524cb8a7c9875b142289c3","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"2bd1861aa1574f74b482e1915bb9805a","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"platformFinancingList","id":"a66200bbd71b4359b6c1861f5bedd077","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"9965d2de0f9c457987487260822b4ae4","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"projectMa","id":"b17cdef3fadb41c19d98db23aae5040d","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"09156ff9cc324fce84548ab861eda793","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"auditLogCompany","id":"b8aeaf9b8f514d668ee12c0c67b9a7ed","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"a031ac7ec315451e966d995c4fa67fc1","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"platformInfoAccountsInfo","id":"b902dab9e694432ca0b06de5a0dee75e","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"3e6ca6b4d3c6414cab516a00c48db1c5","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"homeIndex","id":"c3c7b1209a884ce7b3b64cad4e762034","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"8d6d78459c0b4253bd9037554a591c42","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"contractMaList","id":"d53ab2fb25764773bafaac0c36950101","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"3b08a2ab892342dea9db27f15e523671","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"contractMa","id":"d6067414182946cca7dbda6beeb152ca","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"9368b3093c984e7892e733d4ad8f4068","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"contractMaTemplate","id":"d859382bf2804ad181aa333743fe098a","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"024abb710dc946868342569aee115920","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"InventoryPledgeFinancingCECIList","id":"d9876182c90a49b19175f2d9edeb7282","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"5cd0633b175c4ffc9cf52931c8e49d80","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"auditLogSeal","id":"df3ca55ca2bf4ab0b3157ba1e615cf57","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"7327c18781ba43aa8521608c4637f881","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"workbenchTask","id":"e03f63acce3a491f81dbe9d56fe6db03","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"af531c3fd4864299bd14c5a608e6bbb9","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"customerMa","id":"e8c3b2e6167f41e489d7bdb545add663","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"b9dbef9b40a743dbaf4ee989ebfee68a","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"poolFinancing","id":"eb8192cbe33e477e9391e6bcbd18e433","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"6d3c345571d44fc39c0ca3f64ffbb990","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"factorMa","id":"ecf5976eedca4f14899040e731d842c1","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"1969da9bc806429faa6433e577712a4a","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"productMaTemplateList","id":"fb2d1ee763da4813bae736efbf67b2c6","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"d5c865abf2f74178b969d120121c2808","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"platformPoolList","id":"fbee16c362054a739e782e1ce5ab851a","effectType":1,"permissionGroupName":"华能云链通权限组"},{"resourceId":"b6e1bf00001743c5989b9527d454c036","resourceActionDtoList":[{"name":"*","id":"*"}],"remark":"*","resourceName":"accountMa","id":"fec249af2a6f48dc8485502742a4d461","effectType":1,"permissionGroupName":"华能云链通权限组"}],"phone_number_verified":false,"groups":[{"groupName":"北京云成金融信息服务有限公司","realmId":"baf236f2121c4ae1b0dff7382647cb3a","isPrimary":true,"groupId":"1341332871a948ec85ce76a815312e3e","userId":"27c4190705cf4ad18f9b1e72310df9d2","groupCode":"91120118MA06DFA24A"}],"phone_number":"15011043582","email":"liming@ycfin.com.cn","attrs":{}}}}'
    jd = simplejson.loads(s1)
    for line in jd['data']['userinfo']['authorizations']:
        print(line['resourceName'])

